package com.cuit.service;


import com.cuit.pojo.Article;

import java.util.List;

public interface ArticleService {
    List<Article> findAll(int page,int pageSize);
    int countAll();
    List<Article> search(int page,int pageSize,String searchText);

    List<Article> findArticleByUserId(int userId,int page,int pageSize);
    public int countArticleByUserId();

    Article findArticleById(int articleId);

    void likeById(int id);
    void dislikeById(int id);

    void insertArticle(int userId, String articleTitle, String articleText);
}
